.class public Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;
.super Lcom/waiqin365/lightapp/kehu/view/CMCustomView;


# instance fields
.field private a:Landroid/widget/ImageView;

.field private b:Landroid/widget/TextView;

.field private c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

.field private d:Landroid/view/View;

.field private e:Landroid/content/Context;

.field private f:Lcom/waiqin365/lightapp/kehu/b/cn;

.field private g:Ljava/util/ArrayList;

.field private h:Z

.field private i:Landroid/os/Handler;


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 4

    invoke-direct {p0, p1, p2}, Lcom/waiqin365/lightapp/kehu/view/CMCustomView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->h:Z

    iput-object p1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->e:Landroid/content/Context;

    new-instance v0, Lcom/waiqin365/lightapp/kehu/view/j;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/kehu/view/j;-><init>(Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->i:Landroid/os/Handler;

    const-string/jumbo v0, "layout_inflater"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const v1, 0x7f03003b

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    const v0, 0x7f0c01b5

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->a:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->a:Landroid/widget/ImageView;

    new-instance v1, Lcom/waiqin365/lightapp/kehu/view/k;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/kehu/view/k;-><init>(Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c01b7

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->d:Landroid/view/View;

    const v0, 0x7f0c01b4

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->b:Landroid/widget/TextView;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->b:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const v0, 0x7f0c01b6

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/kehu/view/MyListView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    new-instance v0, Lcom/waiqin365/lightapp/kehu/b/cn;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->e:Landroid/content/Context;

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->i:Landroid/os/Handler;

    invoke-direct {v0, v1, v2, v3}, Lcom/waiqin365/lightapp/kehu/b/cn;-><init>(Landroid/content/Context;Ljava/util/ArrayList;Landroid/os/Handler;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->f:Lcom/waiqin365/lightapp/kehu/b/cn;

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->f:Lcom/waiqin365/lightapp/kehu/b/cn;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/view/MyListView;->setAdapter(Landroid/widget/ListAdapter;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->h:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;)Lcom/waiqin365/lightapp/kehu/b/cn;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->f:Lcom/waiqin365/lightapp/kehu/b/cn;

    return-object v0
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->h:Z

    return v0
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->a:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;)Lcom/waiqin365/lightapp/kehu/view/MyListView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    return-object v0
.end method


# virtual methods
.method public setBottomLineStatus(Z)V
    .locals 2

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->d:Landroid/view/View;

    if-eqz p1, :cond_0

    const/4 v0, 0x0

    :goto_0
    invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

    return-void

    :cond_0
    const/16 v0, 0x8

    goto :goto_0
.end method

.method public setCusFormValue(Ljava/lang/String;)V
    .locals 7

    const/4 v0, 0x0

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->clear()V

    :try_start_0
    new-instance v1, Lorg/json/JSONObject;

    invoke-direct {v1, p1}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    const-string/jumbo v2, "url"

    invoke-virtual {v1, v2}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "data"

    invoke-virtual {v1, v3}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v1

    :goto_0
    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v0, v3, :cond_1

    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v3

    new-instance v4, Lcom/waiqin365/lightapp/kehu/b/cr;

    invoke-direct {v4}, Lcom/waiqin365/lightapp/kehu/b/cr;-><init>()V

    const-string/jumbo v5, "type"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-eqz v5, :cond_0

    const-string/jumbo v5, "name"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/kehu/b/cr;->b:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, "alias"

    invoke-virtual {v3, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/kehu/b/cr;->d:Ljava/lang/String;

    :goto_1
    const-string/jumbo v5, "size"

    invoke-virtual {v3, v5}, Lorg/json/JSONObject;->getInt(Ljava/lang/String;)I

    move-result v3

    iput v3, v4, Lcom/waiqin365/lightapp/kehu/b/cr;->c:I

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v3, v4}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    const-string/jumbo v6, "name"

    invoke-virtual {v3, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, "."

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, "type"

    invoke-virtual {v3, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/kehu/b/cr;->b:Ljava/lang/String;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, "alias"

    invoke-virtual {v3, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, "."

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string/jumbo v6, "type"

    invoke-virtual {v3, v6}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    iput-object v5, v4, Lcom/waiqin365/lightapp/kehu/b/cr;->d:Ljava/lang/String;

    goto :goto_1

    :catch_0
    move-exception v0

    :goto_2
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->b:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->f:Lcom/waiqin365/lightapp/kehu/b/cn;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/cn;->a(Ljava/util/ArrayList;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->setHeight()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->h:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->a:Landroid/widget/ImageView;

    const v1, 0x7f02040b

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->a:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/view/MyListView;->setVisibility(I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2
.end method

.method public setCusFormValueByCM(Ljava/lang/String;)V
    .locals 5

    const/4 v0, 0x0

    :try_start_0
    new-instance v1, Lorg/json/JSONArray;

    invoke-direct {v1, p1}, Lorg/json/JSONArray;-><init>(Ljava/lang/String;)V

    :goto_0
    if-eqz v1, :cond_1

    invoke-virtual {v1}, Lorg/json/JSONArray;->length()I

    move-result v2

    if-ge v0, v2, :cond_1

    invoke-virtual {v1, v0}, Lorg/json/JSONArray;->optJSONObject(I)Lorg/json/JSONObject;

    move-result-object v2

    if-eqz v2, :cond_0

    new-instance v3, Lcom/waiqin365/lightapp/kehu/b/cr;

    invoke-direct {v3}, Lcom/waiqin365/lightapp/kehu/b/cr;-><init>()V

    const-string/jumbo v4, "file_name"

    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/waiqin365/lightapp/kehu/b/cr;->b:Ljava/lang/String;

    const-string/jumbo v4, "fullUrl"

    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    iput-object v4, v3, Lcom/waiqin365/lightapp/kehu/b/cr;->d:Ljava/lang/String;

    const-string/jumbo v4, "file_size"

    invoke-virtual {v2, v4}, Lorg/json/JSONObject;->optInt(Ljava/lang/String;)I

    move-result v2

    iput v2, v3, Lcom/waiqin365/lightapp/kehu/b/cr;->c:I

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->b:Landroid/widget/TextView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->f:Lcom/waiqin365/lightapp/kehu/b/cn;

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->g:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/b/cn;->a(Ljava/util/ArrayList;)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->setHeight()V

    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->h:Z

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->a:Landroid/widget/ImageView;

    const v1, 0x7f02040b

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->a:Landroid/widget/ImageView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/kehu/view/MyListView;->setVisibility(I)V
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_1
.end method

.method public setHeight()V
    .locals 6

    const/4 v1, 0x0

    move v0, v1

    move v2, v1

    :goto_0
    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->f:Lcom/waiqin365/lightapp/kehu/b/cn;

    invoke-virtual {v3}, Lcom/waiqin365/lightapp/kehu/b/cn;->getCount()I

    move-result v3

    if-ge v0, v3, :cond_0

    iget-object v3, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->f:Lcom/waiqin365/lightapp/kehu/b/cn;

    const/4 v4, 0x0

    iget-object v5, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    invoke-virtual {v3, v0, v4, v5}, Lcom/waiqin365/lightapp/kehu/b/cn;->getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v3, v1, v1}, Landroid/view/View;->measure(II)V

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->e:Landroid/content/Context;

    invoke-virtual {v3}, Landroid/view/View;->getMeasuredHeight()I

    move-result v3

    int-to-float v3, v3

    invoke-static {v4, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/content/Context;F)I

    move-result v3

    iget-object v4, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    invoke-virtual {v4}, Lcom/waiqin365/lightapp/kehu/view/MyListView;->getDividerHeight()I

    move-result v4

    add-int/2addr v3, v4

    add-int/2addr v2, v3

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/kehu/view/MyListView;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v0

    iput v2, v0, Landroid/view/ViewGroup$LayoutParams;->height:I

    iget-object v1, p0, Lcom/waiqin365/lightapp/kehu/view/AttachPreviewView_vertical;->c:Lcom/waiqin365/lightapp/kehu/view/MyListView;

    invoke-virtual {v1, v0}, Lcom/waiqin365/lightapp/kehu/view/MyListView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    return-void
.end method
